; Music of Race (1990) (Players) (Andy Serven)
; Ripped by Megachur the 27/04/2007

	write "RACE.BIN"

music_date_rip	equ &1b47
music_adr	equ &4000
first_theme	equ 0
last_theme	equ 0

	read "music_header_v1_0.asm"

	jp l4143	; init
	jp l4226	; play

.l400a equ $ + 4
.l4009 equ $ + 3
.l4008 equ $ + 2
.music_end equ $ + 1
.l4007 equ $ + 1
.l4006
	db #00,#00,#00,#00,#6e,#48,#00,#00
.l4015 equ $ + 7
	db #00,#00,#30,#30,#30,#30,#00,#0f
.l4019 equ $ + 3
.l4018 equ $ + 2
.l4017 equ $ + 1
.l4016
	db #00,#00,#00,#00,#00
.l401b
	ld a,(l4017)
	and a
	ld b,a
	ret z
	ld a,(l4019)
	cp #80
	jp z,l4044
	ld a,(l4018)
	dec a
	ld (l4018),a
	ret nz
	ld a,(l4019)
	ld (l4018),a
	ld a,(l4015)
	add b
	bit 4,a
	jp nz,l4053
	ld (l4015),a
	ret
.l4044
	ld a,b
	cp #01
	ld a,#0f
	jp z,l404d
	xor a
.l404d
	ld (l4015),a
	jp l4053
.l4053
	xor a
	ld (l4017),a
	ld a,(l4016)
	and a
	jp nz,l41f2
	ret
.l405f
	ld a,#00
	ld (l4015),a
	ld a,#01
.l4066
	ld (l4017),a
	inc hl
	ld a,(hl)
	ld (l4019),a
	ld (l4018),a
	inc hl
	jp l45a2
.l4075
	ld a,#0f
	ld (l4015),a
	ld a,#ff
	jp l4066
.l407f
	ld a,h
	push af
	ld c,l
	cp #07
	jp nz,l408b
	res 7,c
	res 6,c
.l408b
	ld a,#c0
	ld b,#f6
	out (c),a
	ld b,#f4
	pop af
	out (c),a
	ld b,#f6
	ld a,#80
	out (c),a
	ld b,#f4
	out (c),c
	xor a
	ld b,#f6
	out (c),a
	ret
.l40ad equ $ + 7
.l40ac equ $ + 6
.l40a7 equ $ + 1
.l40a6
	db #00,#00,#00,#00,#00,#00,#00,#f8
.l40b3 equ $ + 5
.l40b1 equ $ + 3
.l40b0 equ $ + 2
.l40af equ $ + 1
.l40ae
	db #00,#00,#00,#4b,#4e,#10,#1b,#0f
	db #0f,#19,#00,#04,#00,#00,#00,#03
	db #00,#01,#08,#00,#00,#01,#05,#49
	db #44,#4e,#00,#f7,#00,#00,#06,#ca
	db #ff,#ff,#76,#dc,#4b,#01,#d4,#4b
	db #00,#0f,#13,#ff,#03,#07,#00,#00
.l40e2 equ $ + 4
.l40e0 equ $ + 2
.l40de
	db #0c,#00,#65,#4d,#04,#25,#00,#0f
	db #00,#00,#0f,#00,#00,#00,#03,#02
	db #03,#09,#03,#03,#04,#4b,#49,#61
	db #4d,#00,#ef,#01,#00,#14,#4c,#ff
	db #64,#29,#09,#4c,#30,#05,#4c,#00
.l410d equ $ + 7
	db #0f,#00,#fc,#00,#00,#00,#00,#0c
.l4111 equ $ + 3
.l410f equ $ + 1
	db #00,#cc,#4e,#18,#3d,#00,#00,#00
	db #00,#00,#00,#00,#00,#00,#04,#05
	db #0a,#00,#00,#01,#9c,#48,#c8,#4e
	db #00,#00,#ff,#ff,#00,#00,#00,#00
	db #00,#1c,#4c,#01,#18,#4c,#00,#00
.l413c equ $ + 6
	db #00,#00,#00,#00,#00,#00,#0c,#00
	db #00,#00,#00,#00,#00
;
.init_music
.l4143
;
	ld a,#0f
	ld (l4015),a
	xor a
	ld (l4017),a
	ld (l4016),a
	call l41fa
	ld a,(l4009)
	cp #ff
	jp nz,l415e
	inc a
	ld (l4009),a
.l415e
	ld a,#01
	ld (l40b3),a
	ld (l40e2),a
	ld (l4111),a
	xor a
	ld (l4008),a
	push ix
	ld ix,l40b1
	ld a,(l4009)
	add a
	ld b,a
	add a
	add b
	ld l,a
	ld h,#00
	ld de,l4b90
	add hl,de
	ld (l418f),hl
	inc hl
	inc hl
	ld (l4199),hl
	inc hl
	inc hl
	ld (l41a3),hl
.l418f equ $ + 1
	ld hl,(l4b90)
	call l41c8
	ld ix,l40e0
.l4199 equ $ + 1
	ld hl,(l4b92)
	call l41c8
	ld ix,l410f
.l41a3 equ $ + 1
	ld hl,(l4b94)
	call l41c8
	ld a,#01
	ld (l4007),a
	ld h,#07
	ld l,#f8
	call l407f
	ld a,(l4009)
	cp #01
	pop ix
	ret
.l41bc
	halt                    ; test player
	call l4226
	ld a,(l4007)
	and a
	jp nz,l41bc
	ret
.l41c8
	ld (ix+#20),l
	ld (ix+#23),l
	ld (ix+#00),l
	ld (ix+#21),h
	ld (ix+#24),h
	ld (ix+#01),h
	call l46bf
	ld (ix+#02),#01
	ld (ix+#0c),#00
	ld (ix+#05),#00
	ld (ix+#04),#00
	ld (ix+#17),#00
	ret
.l41f2
	call l41fa
	xor a
	ld (l4007),a
	ret
.l41fa
	ld h,#07
	ld l,#ff
	call l407f
	ld hl,l40a6
	ld de,l40a7
	ld bc,#000a
	ld (hl),#00
	ldir
	ld a,#f8
	ld (l40ad),a
.l4213
	ld b,#0b
	ld h,#00
	ld de,l40a6
.l421a
	ld a,(de)
	ld l,a
	push bc
	call l407f
	pop bc
	inc h
	inc de
	djnz l421a
	ret
;
.play_music
.l4226
;
	ld a,(l4006)
	and a
	jp z,l4259
	ld b,a
	xor a
	ld (l4006),a
	ld a,b
	cp #ff
	jp z,l41f2
	cp #fe
	jp nz,l4252
	ld a,#01
	ld (l4016),a
	ld a,#ff
	ld (l4017),a
	ld a,#0a
	ld (l4019),a
	ld (l4018),a
	jp l4259
.l4252
	dec a
	ld (l4009),a
	jp l4143
.l4259
	call l401b
	ld a,(l4007)
	and a
	jr z,l42bb
	push ix
	ld ix,l40b1
	bit 7,(ix+#0c)
	call z,l42bc
	ld ix,l40e0
	bit 7,(ix+#0c)
	call z,l42bc
	ld ix,l410f
	bit 7,(ix+#0c)
	call z,l42bc
	ld a,(l4015)
	cpl
	and #0f
	ld b,a
	ld a,(l4008)
	and a
	ld a,#10
	jp nz,l429d
	ld a,(l40ae)
	sub b
	jp nc,l429d
	xor a
.l429d
	ld (l40ae),a
	ld a,(l40af)
	sub b
	jp nc,l42a8
	xor a
.l42a8
	ld (l40af),a
	ld a,(l40b0)
	sub b
	jp nc,l42b3
	xor a
.l42b3
	ld (l40b0),a
	call l4213
	pop ix
.l42bb
	ret
.l42bc
	ld a,(ix+#02)
	dec (ix+#02)
	jp z,l4463
.l42c5
	ld a,(ix+#0c)
	and #03
	jp z,l4385
	cp #01
	jp z,l42df
	cp #02
	jp z,l431f
	cp #03
	jp z,l4369
	jp l43b6
.l42df
	ld a,(ix+#0b)
	and a
	jr z,l42eb
	dec (ix+#0b)
	jp l43b6
.l42eb
	ld a,(ix+#04)
	ld b,(ix+#08)
	add b
	ld (ix+#04),a
	ld b,(ix+#05)
	cp b
	jr z,l430c
	jr nc,l4306
	ld a,(ix+#07)
	ld (ix+#0b),a
	jp l43b6
.l4306
	ld a,(ix+#05)
	ld (ix+#04),a
.l430c
	ld a,(ix+#0c)
	and #fc
	or #02
	ld (ix+#0c),a
	ld a,(ix+#09)
	ld (ix+#25),a
	jp l43b6
.l431f
	ld a,(ix+#25)
	and a
	jr z,l432b
	dec (ix+#25)
	jp l43b6
.l432b
	ld a,(ix+#04)
	ld b,(ix+#0a)
	add b
	ld (ix+#04),a
	bit 7,a
	jp nz,l434a
	ld b,(ix+#26)
	cp b
	jr z,l4357
	jr c,l4351
	ld a,(ix+#09)
	ld (ix+#25),a
	jr l43b6
.l434a
	ld (ix+#04),#00
	jp l4357
.l4351
	ld a,(ix+#26)
	ld (ix+#04),a
.l4357
	ld a,(ix+#0c)
	and #fc
	or #03
	ld (ix+#0c),a
	ld a,(ix+#06)
	ld (ix+#27),a
	jr l43b6
.l4369
	ld a,(ix+#27)
	and a
	jr z,l4374
	dec (ix+#27)
	jr l43b6
.l4374
	ld a,(ix+#0c)
	and #fc
	ld (ix+#0c),a
	ld a,(ix+#2a)
	ld (ix+#29),a
	jp l43b6
.l4385
	ld a,(ix+#29)
	and a
	jr z,l4390
	dec (ix+#29)
	jr l43b6
.l4390
	ld a,(ix+#04)
	ld b,(ix+#28)
	add b
	ld (ix+#04),a
	bit 7,a
	jr nz,l43a6
	ld a,(ix+#2a)
	ld (ix+#29),a
	jr l43b6
.l43a6
	ld (ix+#04),#00
	ld a,(ix+#0c)
	and #fc
	or #03
	ld (ix+#0c),a
	jr l43b6
.l43b6
	ld a,(ix+#04)
	ld hl,l40a6
	ld d,#00
	ld e,(ix+#0f)
	add hl,de
	ld (hl),a
	ld h,(ix+#14)
	ld l,(ix+#13)
	ld d,#00
	ld e,(ix+#10)
	add hl,de
	ld a,(ix+#03)
	push af
	ld a,(hl)
	add (ix+#03)
	ld (ix+#03),a
	call l44f6
	pop af
	ld (ix+#03),a
	inc (ix+#10)
	ld a,(ix+#12)
	xor (ix+#10)
	jr nz,l43f2
	ld a,(ix+#11)
	ld (ix+#10),a
.l43f2
	ld a,(ix+#1a)
	cp #ff
	jr z,l4433
	and a
	jr z,l4401
	dec (ix+#1a)
	jr nz,l4433
.l4401
	dec (ix+#1f)
	jr nz,l4414
	ld a,(ix+#1e)
	ld (ix+#1f),a
	ld a,(ix+#2e)
	xor #01
	ld (ix+#2e),a
.l4414
	ld b,#00
	ld c,(ix+#1b)
	ld h,(ix+#1d)
	ld l,(ix+#1c)
	bit 0,(ix+#2e)
	jr z,l4428
	add hl,bc
	jr l442a
.l4428
	sbc hl,bc
.l442a
	ld (ix+#1d),h
	ld (ix+#1c),l
	call l444e
.l4433
	ld a,(ix+#2b)
	call l4441
	and a
	call nz,l444e
	ld a,(ix+#02)
	ret
.l4441
	ld l,a
	ld h,#00
	bit 7,a
	ret z
	ld d,h
	ld e,l
	sbc hl,de
	sbc hl,de
	ret
.l444e
	ld b,h
	ld c,l
	ld hl,l40a6
	ld d,#00
	ld e,(ix+#0d)
	add hl,de
	ld e,(hl)
	inc hl
	ld d,(hl)
	ex de,hl
	add hl,bc
	ex de,hl
	ld (hl),d
	dec hl
	ld (hl),e
	ret
.l4463
	ld l,(ix+#00)
	ld h,(ix+#01)
	ld (ix+#10),#00
.l446d
	ld a,(hl)
	cp #60
	jp z,l44f4
	cp #61
	jp z,l45ab
	cp #62
	jp z,l4589
	cp #64
	jp z,l4545
	cp #65
	jp z,l457b
	cp #fa
	jp z,l454e
	cp #fc
	jp z,l405f
	cp #fd
	jp z,l4075
	cp #fe
	jp z,l458d
	cp #ff
	jp z,l4573
	ld b,a
	ld a,(ix+#0c)
	and #fc
	or #01
	ld (ix+#0c),a
	ld a,b
	sub (ix+#2d)
	ld (ix+#03),a
	ld a,(ix+#19)
	ld (ix+#1a),a
	ld a,(ix+#1e)
	srl a
	ld (ix+#1f),a
	ld (ix+#1d),#00
	ld (ix+#1c),#00
.l44c8
	inc hl
	ld a,(hl)
	dec a
	push hl
	ld h,#00
	ld l,a
	ld de,(l400a)
	add hl,de
	ld a,(hl)
	pop hl
	inc hl
	ld b,(ix+#2c)
	add b
	ld (ix+#2c),#00
	ld (ix+#02),a
	ld a,(ix+#07)
	ld (ix+#0b),a
	ld (ix+#00),l
	ld (ix+#01),h
	call l44f6
	jp l42c5
.l44f4
	jr l44c8
.l44f6
	ld a,(ix+#17)
	and a
	call nz,l453a
	ld a,(ix+#03)
	inc a
	inc a
	add a
	ld d,#00
	ld e,a
	ld hl,l471e
	add hl,de
	push hl
	ld c,(hl)
	inc hl
	ld b,(hl)
	ld hl,l40a6
	ld d,#00
	ld e,(ix+#0d)
	add hl,de
	ld (hl),c
	inc hl
	ld (hl),b
	pop hl
	ld a,(l4008)
	and a
	ret z
	ld a,(ix+#0f)
	cp #08
	ret nz
	ld de,#00c0
	add hl,de
	ex de,hl
	ld h,#0b
	ld a,(de)
	ld l,a
	call l407f
	inc de
	inc h
	ld a,(de)
	ld l,a
	call l407f
	ret
.l453a
	ld a,(ix+#03)
	neg
	and #1f
	ld (l40ac),a
	ret
.l4545
	inc hl
	ld a,(hl)
	inc hl
	ld (l40ac),a
	jp l45a2
.l454e
	inc hl
	ld (ix+#2e),#01
	ld a,(hl)
	ld (ix+#19),a
	inc hl
	ld a,(hl)
	bit 7,a
	jp z,l4564
	neg
	ld (ix+#2e),#00
.l4564
	ld (ix+#1b),a
	ld (ix+#1e),#ff
	ld (ix+#1f),#ff
	inc hl
	jp l45a2
.l4573
	inc hl
	ld (ix+#04),#00
	jp l45a2
.l457b
	inc hl
	ld a,(hl)
	inc hl
	push hl
	ld h,#0d
	ld l,a
	call l407f
	pop hl
	jp l45a2
.l4589
	inc hl
	jp l45a2
.l458d
	ld a,(ix+#22)
	dec a
	ld (ix+#22),a
	jr nz,l459c
	jp l46b1
	jp l446d
.l459c
	ld l,(ix+#15)
	ld h,(ix+#16)
.l45a2
	ld (ix+#01),h
	ld (ix+#00),l
	jp l446d
.l45ab
	inc hl
	ld a,(hl)
	inc hl
	push hl
	ld (ix+#00),l
	ld (ix+#01),h
	ld b,a
	add a
	ld h,#00
	ld l,a
	add hl,hl
	add hl,hl
	add hl,hl
	add hl,hl
	ld de,l488e
	add hl,de
	ld d,#00
	add b
	ld e,a
	add hl,de
	ld a,(hl)
	ld (ix+#07),a
	inc hl
	ld a,(hl)
	ld (ix+#05),a
	inc hl
	ld a,(hl)
	ld (ix+#08),a
	inc hl
	ld a,(hl)
	ld (ix+#09),a
	inc hl
	ld a,(hl)
	ld (ix+#0a),a
	inc hl
	ld a,(hl)
	ld (ix+#26),a
	inc hl
	ld a,(hl)
	ld (ix+#06),a
	inc hl
	ld a,(hl)
	ld (ix+#2a),a
	inc hl
	ld a,(hl)
	ld (ix+#28),a
	inc hl
	ld a,(hl)
	ld (ix+#19),a
	inc hl
	ld a,(hl)
	ld (ix+#1b),a
	inc hl
	ld a,(hl)
	ld (ix+#1e),a
	inc hl
	ld a,(hl)
	ld (ix+#11),a
	inc hl
	ld a,(hl)
	ld (ix+#12),a
	inc hl
	ld (ix+#14),h
	ld (ix+#13),l
	ld (ix+#10),#00
	ld de,#0010
	add hl,de
	ld a,(hl)
	ld (ix+#17),#00
	and a
	jp z,l4636
	ld b,a
	or #c0
	ld (l40ad),a
	ld a,b
	bit 7,a
	jp z,l4636
	cpl
	and #38
	ld (ix+#17),a
.l4636
	inc hl
	ld a,(ix+#0f)
	cp #08
	jp nz,l4652
	ld a,(hl)
	ld (l4008),a
	and a
	jp z,l4652
	inc hl
	inc hl
	ld a,(hl)
	push hl
	ld h,#0d
	ld l,a
	call l407f
	pop hl
.l4652
	pop hl
	jp l446d
.l4656
	inc hl
	ld a,(hl)
	inc hl
	push hl
	add a
	add a
	add a
	ld h,#00
	ld l,a
	ld de,l486e
	add hl,de
	ld (l400a),hl
	pop hl
	jp l46c5
.l466b
	inc hl
	ld a,(hl)
	inc hl
	ld (ix+#2c),a
	jp l46c5
.l4674
	inc hl
	ld a,(hl)
	inc hl
	ld (ix+#2b),a
	jp l46c5
.l467d
	inc hl
	ld a,(hl)
	inc hl
	ld (l40de),a
	ld (l410d),a
	ld (l413c),a
	jp l46c5
.l468c
	inc hl
	ld b,(hl)
	inc hl
	ld a,(ix+#2d)
	add b
	ld (ix+#2d),a
	jp l46c5
	ld (ix+#0c),#ff
	ld (ix+#03),#00
	ld (ix+#04),#00
	inc hl
	ld a,(hl)
	and a
	jp z,l42c5
	call l41f2
	jp l42c5
.l46b1
	call l46bf
	jp l4463
.l46b7
	pop bc
	jp l41f2
.l46bb
	pop bc
	jp l4143
.l46bf
	ld l,(ix+#20)
	ld h,(ix+#21)
.l46c5
	ld a,(hl)
	cp #f8
	jp z,l466b
	cp #f9
	jp z,l4674
	cp #fa
	jp z,l468c
	cp #fb
	jp z,l467d
	cp #fc
	jp z,l4656
	cp #fd
	jp z,l46bb
	cp #fe
	jr z,l4712
	cp #ff
	jr z,l46b7
	push hl
	ld l,a
	ld h,#00
	add hl,hl
	ld de,l4ba2
	add hl,de
	ld e,(hl)
	inc hl
	ld d,(hl)
	ld (ix+#00),e
	ld (ix+#01),d
	ld (ix+#15),e
	ld (ix+#16),d
	pop hl
	inc hl
	ld a,(hl)
	ld (ix+#22),a
	inc hl
	ld (ix+#20),l
	ld (ix+#21),h
	ret
.l4712
	ld l,(ix+#23)
	ld h,(ix+#24)
	jr l46c5
.l471e equ $ + 4
	db #00,#00,#00,#00,#00,#00
	dw #0e18,#0d4d,#0c8e,#0bda
	dw #0b2f,#0a8f,#09f7,#0968
	dw #08e1,#0861,#07e9,#0777
	dw #070c,#06a7,#0647,#05ed
	dw #0598,#0547,#04fc,#04d4
	dw #0470,#0431,#03f4,#03dc
	dw #0386,#0353,#0324,#02f6
	dw #02cc,#02a4,#027e,#025a
	dw #0238,#0218,#01fa,#01de
	dw #01c3,#01aa,#0192,#017b
	dw #0166,#0152,#013f,#012d
	dw #011c,#010c,#00fd,#00ef
	dw #00e1,#00d5,#00c9,#00be
	dw #00b3,#00a9,#009f,#0096
	dw #008e,#0086,#007f,#0077
	dw #0071,#006a,#0064,#005f
	dw #0059,#0054,#0050,#004b
	dw #0047,#0043,#003f,#003c
	dw #0038,#0035,#0032,#002f
	dw #002d,#002a,#0028,#0026
	dw #0024,#0022,#0020,#001e
	dw #001c,#001b,#0019,#0018
	dw #0016,#0015,#0014,#0013
	dw #0012,#0011,#0010
	db #00,#00,#00,#00,#00,#00,#00,#00
	db #00,#00,#00,#00,#00,#00,#00,#00
	db #00,#00,#00,#00,#00,#00,#00,#00
	db #00,#00,#00,#00,#00,#00,#00,#00
	dw #006a,#0064,#005e,#005a
	dw #0054,#004f,#004a,#0047
	dw #0043,#003f,#003b,#0038
	dw #0035,#0032,#002f,#002d
	dw #002a,#0028,#0025,#0023
	dw #0021,#0020,#001e,#001c
	dw #001b,#0019,#0018,#0016
	dw #0015,#0014,#0013,#0012
	dw #0011,#0010,#000f,#000e
	dw #000d,#000c,#000b,#000a
	db #00,#00,#00,#00,#00,#00,#00,#00
	db #00,#00,#00,#00,#00,#00,#00,#00
	db #00,#00,#00,#00,#00,#00,#00,#00
	db #00,#00,#00,#00,#00,#00,#00,#00
.l486e
	db #02,#04,#06,#08,#0a,#0c,#0e,#10
	db #12,#14,#16,#18,#1a,#1c,#1e,#20
	db #22,#24,#26,#28,#2a,#2c,#2e,#30
	db #32,#34,#36,#38,#3a,#3c,#3e,#40
.l488e
	db #00,#00,#00,#00,#00,#00,#00,#00
	db #00,#ff,#00,#00,#00,#01,#00,#0c
	db #00,#0c,#00,#00,#18,#00,#00,#00
	db #00,#00,#00,#00,#00,#00,#00,#00
	db #00,#00,#00,#01,#0f,#01,#01,#ff
	db #0a,#14,#02,#ff,#ff,#00,#00,#00
	db #01,#00,#00,#00,#00,#00,#00,#00
	db #00,#00,#00,#00,#00,#00,#00,#00
	db #00,#6a,#00,#00,#00,#00,#00,#00
	db #00,#00,#00,#00,#00,#00,#00,#00
	db #00,#00,#00,#00,#00,#00,#00,#00
	db #00,#00,#00,#00,#00,#00,#00,#00
	db #00,#00,#00,#00,#00,#00,#00,#00
	db #00,#00,#0f,#04,#00,#00,#0f,#19
	db #07,#ff,#ff,#00,#00,#00,#01,#00
	db #00,#00,#00,#00,#00,#00,#00,#00
	db #00,#00,#00,#00,#00,#00,#00,#00
	db #00,#00,#00,#00,#00,#0f,#08,#00
	db #ff,#0c,#05,#02,#ff,#ff,#00,#00
	db #00,#01,#0c,#00,#00,#00,#00,#00
	db #00,#00,#00,#00,#00,#00,#00,#00
	db #00,#00,#00,#00,#00,#00,#00,#00
	db #0f,#0f,#00,#00,#0f,#00,#00,#fc
	db #01,#14,#64,#03,#04,#00,#fc,#f8
	db #f4,#e8,#00,#00,#00,#00,#00,#00
	db #00,#00,#00,#00,#00,#b8,#00,#00
	db #00,#00,#00,#0f,#0f,#00,#fe,#0d
	db #00,#00,#ff,#ff,#00,#00,#03,#06
	db #00,#fc,#f4,#f4,#00,#00,#00,#00
	db #00,#00,#00,#00,#00,#00,#00,#00
	db #e8,#00,#00,#00,#00,#00,#0a,#0a
	db #00,#fe,#08,#00,#00,#f8,#ff,#00
	db #00,#00,#01,#0c,#00,#00,#00,#00
	db #00,#00,#00,#00,#00,#00,#00,#00
	db #00,#00,#00,#78,#00,#00,#00,#00
	db #00,#0f,#0f,#00,#ff,#0c,#02,#00
	db #fc,#ff,#00,#00,#00,#01,#0c,#00
	db #00,#00,#00,#00,#00,#00,#00,#00
	db #00,#00,#00,#00,#00,#00,#00,#00
	db #00,#00,#00,#00,#0d,#08,#00,#ff
	db #0a,#05,#02,#ff,#ff,#00,#00,#00
	db #03,#00,#05,#08,#00,#00,#00,#00
	db #00,#00,#00,#00,#00,#00,#00,#00
	db #00,#00,#00,#00,#00,#00,#00,#0d
	db #08,#00,#ff,#0a,#05,#02,#ff,#ff
	db #00,#00,#00,#03,#00,#04,#07,#00
	db #00,#00,#00,#00,#00,#00,#00,#00
	db #00,#00,#00,#00,#00,#00,#00,#00
	db #00,#00,#0d,#08,#00,#ff,#0a,#05
	db #02,#ff,#ff,#00,#00,#00,#03,#00
	db #05,#09,#00,#00,#00,#00,#00,#00
	db #00,#00,#00,#00,#00,#00,#00,#00
	db #00,#00,#00,#00,#00,#0d,#08,#00
	db #ff,#0a,#05,#02,#ff,#ff,#00,#00
	db #00,#03,#00,#03,#07,#00,#00,#00
	db #00,#00,#00,#00,#00,#00,#00,#00
	db #00,#00,#00,#00,#00,#00,#00,#00
	db #00,#00,#00,#00,#00,#00,#00,#00
	db #00,#00,#00,#00,#00,#00,#00,#00
	db #00,#00,#00,#00,#00,#00,#00,#00
	db #00,#00,#00,#00,#00,#00,#00,#00
	db #00,#00,#00,#00,#00,#00,#00,#00
	db #00,#00,#00,#00,#00,#00,#00,#00
	db #00,#00,#00,#00,#00,#00,#00,#00
	db #00,#00,#00,#00,#00,#00,#00,#00
	db #00,#00,#00,#00,#00,#00,#0f,#08
	db #00,#00,#0f,#00,#00,#fb,#ff,#00
	db #00,#03,#04,#24,#18,#12,#0c,#00
	db #00,#00,#00,#00,#00,#00,#00,#00
	db #00,#00,#00,#00,#00,#00,#00,#00
	db #00,#0c,#08,#00,#00,#0c,#00,#00
	db #fb,#ff,#00,#00,#03,#04,#24,#18
	db #12,#0c,#00,#00,#00,#00,#00,#00
	db #00,#00,#00,#00,#00,#00,#00,#00
	db #00,#00,#00,#00,#00,#00,#00,#00
	db #00,#00,#00,#00,#00,#00,#00,#00
	db #00,#00,#00,#00,#00,#00,#00,#00
	db #00,#00,#00,#00,#00,#00,#00,#00
	db #00,#00,#00,#00,#00,#00,#00,#0f
	db #08,#00,#ff,#0c,#0a,#02,#ff,#ff
	db #00,#00,#00,#01,#00,#00,#00,#00
	db #00,#00,#00,#00,#00,#00,#00,#00
	db #00,#00,#00,#00,#00,#00,#00,#00
	db #00,#00,#0f,#08,#00,#00,#0f,#00
	db #00,#fb,#ff,#00,#00,#03,#04,#24
	db #18,#12,#0c,#00,#00,#00,#00,#00
	db #00,#00,#00,#00,#00,#00,#00,#78
	db #00,#00,#00,#00,#00,#0f,#0f,#00
	db #ff,#0e,#06,#00,#f8,#ff,#00,#00
	db #00,#01,#0c,#00,#00,#00,#00,#00
	db #00,#00,#00,#00,#00,#00,#00,#00
	db #00,#00,#78,#00,#00,#00,#00,#00
	db #0f,#0f,#00,#fe,#0d,#00,#00,#ff
	db #ff,#00,#00,#03,#06,#00,#fc,#f4
	db #f4,#00,#00,#00,#00,#00,#00,#00
	db #00,#00,#00,#00,#00,#f0,#00,#00
	db #00,#00
.l4b94 equ $ + 4
.l4b92 equ $ + 2
.l4b90
	dw l4bd4,l4c05,l4c18,l4c3d
	dw l4c44,l4c47,l4c4c,l4c5b
.l4ba2 equ $ + 2
	dw l4c62,l4c69,l4c84,l4cdc
	dw l4d34,l4d61,l4d8a,l4df7
	dw l4e44,l4ec8,l4ee5,l4f96
	dw l4fef,l5066,l50d3,l512e
	dw l518f,l520a,l5278,l52e9
	dw l5344,l536d,l5394,l4cba
	dw l4d12,l5249
.l4bd4
	db #fc,#00,#fb,#0c,#02,#01,#07,#01
	db #0a,#02,#05,#02,#fa,#ff,#05,#02
	db #fa,#01,#0b,#02,#0d,#01,#0c,#01
	db #0d,#01,#09,#01,#11,#02,#07,#02
	db #11,#02,#0a,#02,#05,#02,#f9,#01
	db #0d,#04,#16,#01,#f9,#00,#00,#01
.l4c05 equ $ + 1
	db #fd,#01,#01,#04,#30,#06,#01,#04
	db #30,#fa,#fb,#0d,#02,#fa,#05,#17
.l4c18 equ $ + 4
	db #01,#00,#04,#fe,#03,#01,#08,#01
	db #06,#04,#fa,#ff,#06,#02,#fa,#01
	db #05,#02,#06,#02,#fa,#0c,#0a,#01
	db #0d,#01,#fa,#f4,#05,#02,#00,#02
	db #07,#02,#06,#04,#12,#04,#00,#04
.l4c3d equ $ + 1
	db #fe,#fc,#00,#fb,#0c,#13,#01,#ff
.l4c47 equ $ + 3
.l4c44
	db #14,#01,#ff,#15,#01,#00,#02,#fe
.l4c4c
	db #fc,#00,#fb,#18,#fa,#f4,#18,#01
.l4c5b equ $ + 7
	db #0e,#01,#0e,#ff,#fa,#0c,#fe,#0f
.l4c62 equ $ + 6
	db #01,#0f,#01,#0f,#ff,#fe,#18,#01
.l4c69 equ $ + 5
	db #18,#01,#10,#ff,#fd,#61,#00,#60
	db #10,#60,#10,#60,#10,#60,#10,#60
	db #10,#60,#10,#60,#10,#60,#10,#60
	db #10,#60,#10,#60,#10,#60,#10,#fe
.l4c84
	db #61,#03,#fa,#00,#ef,#2c,#0c,#fa
	db #00,#0a,#34,#08,#60,#10,#24,#02
	db #22,#02,#24,#02,#22,#02,#24,#02
	db #22,#02,#24,#02,#22,#02,#24,#02
	db #22,#02,#24,#02,#22,#02,#24,#02
	db #22,#02,#24,#02,#22,#02,#24,#02
.l4cba equ $ + 6
	db #22,#02,#24,#02,#22,#02,#61,#03
	db #24,#02,#fa,#00,#fa,#2c,#08,#fa
	db #00,#f8,#60,#10,#fa,#00,#fc,#27
	db #10,#60,#08,#fa,#00,#f6,#16,#10
	db #60,#10,#fa,#00,#f2,#60,#10,#fe
.l4cdc
	db #61,#03,#fa,#00,#f2,#20,#0c,#fa
	db #00,#0b,#28,#08,#60,#10,#18,#02
	db #22,#02,#18,#02,#22,#02,#18,#02
	db #22,#02,#18,#02,#22,#02,#18,#02
	db #22,#02,#18,#02,#22,#02,#18,#02
	db #22,#02,#18,#02,#22,#02,#18,#02
.l4d12 equ $ + 6
	db #22,#02,#18,#02,#22,#02,#61,#03
	db #18,#02,#fa,#00,#fa,#20,#08,#fa
	db #00,#f8,#60,#10,#fa,#00,#fc,#1b
	db #10,#60,#08,#fa,#00,#f8,#16,#10
	db #60,#10,#fa,#00,#f0,#60,#10,#fe
.l4d34
	db #61,#00,#25,#10,#60,#08,#61,#04
	db #3d,#06,#61,#00,#19,#0c,#61,#04
	db #3d,#06,#61,#00,#19,#0c,#61,#04
	db #3d,#06,#61,#00,#19,#0c,#61,#04
	db #49,#10,#60,#10,#60,#10,#60,#10
.l4d61 equ $ + 5
	db #60,#10,#60,#10,#fe,#61,#05,#31
	db #06,#61,#07,#44,#03,#44,#03,#61
	db #06,#19,#06,#61,#07,#44,#03,#61
	db #05,#31,#06,#61,#07,#44,#03,#61
	db #05,#31,#06,#61,#06,#19,#06,#61
.l4d8a equ $ + 6
	db #07,#44,#03,#44,#03,#fe,#61,#08
	db #22,#06,#22,#03,#22,#03,#22,#03
	db #22,#06,#2e,#03,#22,#03,#22,#03
	db #24,#03,#25,#03,#24,#03,#22,#03
	db #1d,#03,#20,#03,#22,#06,#22,#03
	db #22,#03,#2e,#03,#22,#06,#2e,#03
	db #25,#03,#25,#03,#31,#03,#25,#03
	db #24,#03,#24,#03,#30,#03,#24,#03
	db #20,#06,#2c,#03,#20,#03,#61,#00
	db #19,#06,#61,#08,#1d,#03,#20,#03
	db #61,#00,#25,#10,#60,#02,#61,#08
	db #1d,#03,#20,#03,#21,#06,#2d,#03
	db #21,#06,#2d,#03,#2d,#03,#2e,#03
	db #30,#03,#2e,#03,#2d,#06,#2a,#06
.l4df7 equ $ + 3
	db #29,#06,#fe,#61,#09,#41,#09,#41
	db #09,#41,#09,#41,#06,#41,#03,#61
	db #0a,#42,#06,#42,#06,#61,#09,#41
	db #03,#41,#03,#41,#03,#41,#09,#41
	db #09,#41,#06,#41,#03,#61,#0a,#42
	db #06,#42,#06,#61,#0b,#3f,#09,#3f
	db #09,#3f,#09,#61,#0c,#41,#09,#61
	db #0b,#3f,#06,#3f,#06,#61,#0a,#41
	db #09,#41,#09,#41,#03,#41,#03,#41
	db #06,#41,#06,#41,#06,#41,#06,#fe
.l4e44
	db #61,#03,#fa,#00,#fa,#27,#0c,#fa
	db #00,#04,#2c,#10,#60,#08,#fa,#00
	db #f0,#19,#10,#60,#08,#fa,#00,#ee
	db #18,#10,#60,#10,#60,#04,#fa,#00
	db #00,#61,#0f,#19,#03,#61,#10,#19
	db #03,#19,#03,#19,#03,#61,#0f,#19
	db #03,#61,#10,#19,#03,#19,#03,#19
	db #03,#61,#0f,#19,#03,#61,#10,#19
	db #03,#19,#03,#19,#03,#61,#0f,#19
	db #03,#61,#10,#19,#03,#19,#03,#19
	db #03,#61,#0f,#19,#03,#61,#10,#19
	db #03,#19,#03,#19,#03,#61,#0f,#19
	db #03,#61,#10,#19,#03,#19,#03,#19
	db #03,#61,#0f,#19,#03,#61,#10,#19
	db #03,#19,#03,#19,#03,#61,#0f,#19
	db #03,#61,#10,#19,#03,#61,#0f,#1c
.l4ec8 equ $ + 4
	db #03,#1b,#03,#fe,#61,#00,#60,#10
	db #60,#10,#60,#10,#60,#10,#60,#10
	db #60,#10,#60,#0c,#60,#10,#60,#10
	db #60,#10,#60,#10,#60,#08,#60,#0c
.l4ee5 equ $ + 1
	db #fe,#61,#05,#31,#03,#61,#14,#22
	db #03,#2e,#03,#22,#03,#61,#15,#19
	db #06,#61,#14,#2e,#03,#22,#03,#61
	db #05,#31,#03,#61,#14,#22,#03,#2c
	db #03,#2e,#03,#61,#15,#19,#06,#61
	db #14,#25,#03,#22,#03,#61,#05,#31
	db #03,#61,#14,#22,#03,#2e,#03,#22
	db #03,#61,#15,#19,#06,#61,#14,#2c
	db #03,#2e,#03,#61,#05,#31,#03,#61
	db #14,#25,#03,#25,#03,#25,#03,#61
	db #15,#19,#06,#61,#14,#24,#06,#61
	db #05,#31,#03,#61,#14,#20,#03,#2c
	db #03,#20,#03,#61,#15,#19,#06,#61
	db #14,#29,#03,#2c,#03,#61,#05,#31
	db #06,#31,#06,#61,#15,#19,#06,#61
	db #14,#1d,#03,#20,#03,#61,#05,#31
	db #03,#61,#14,#21,#03,#21,#06,#61
	db #15,#19,#03,#61,#14,#21,#03,#2d
	db #03,#2e,#03,#30,#03,#61,#15,#19
	db #03,#61,#14,#2d,#03,#61,#15,#19
	db #03,#61,#14,#2a,#03,#61,#15,#19
	db #03,#61,#14,#29,#03,#61,#15,#19
.l4f96 equ $ + 2
	db #03,#fe,#61,#08,#22,#03,#22,#03
	db #2e,#03,#22,#03,#2c,#03,#2e,#03
	db #2c,#03,#2e,#03,#61,#00,#25,#10
	db #60,#08,#61,#08,#22,#03,#22,#03
	db #2e,#03,#22,#03,#2c,#03,#2e,#03
	db #2c,#03,#2e,#03,#61,#00,#25,#0c
	db #61,#08,#fa,#00,#08,#2e,#0c,#fa
	db #00,#00,#20,#03,#20,#03,#2c,#03
	db #20,#03,#29,#03,#2c,#03,#29,#03
	db #2c,#03,#61,#00,#25,#10,#60,#08
	db #61,#08,#30,#0c,#2d,#0c,#2a,#0c
.l4fef equ $ + 3
	db #29,#0c,#fe,#61,#00,#19,#0c,#61
	db #09,#41,#06,#41,#06,#61,#00,#19
	db #06,#61,#0c,#41,#06,#61,#00,#19
	db #06,#61,#09,#41,#06,#61,#00,#19
	db #06,#61,#09,#41,#06,#41,#06,#61
	db #00,#19,#06,#61,#09,#41,#06,#61
	db #00,#19,#06,#61,#0b,#44,#06,#61
	db #00,#19,#06,#61,#0a,#44,#06,#61
	db #00,#19,#06,#61,#0a,#44,#06,#44
	db #06,#61,#00,#19,#06,#61,#0a,#42
	db #06,#61,#00,#19,#06,#61,#0a,#41
	db #0c,#41,#03,#61,#00,#19,#03,#61
	db #0a,#41,#03,#61,#00,#19,#03,#61
	db #0a,#41,#03,#61,#00,#19,#03,#61
	db #0a,#41,#06,#41,#06,#41,#06,#41
.l5066 equ $ + 2
	db #06,#fe,#61,#00,#19,#0c,#61,#12
	db #46,#0c,#fa,#00,#fe,#44,#06,#fa
	db #00,#00,#44,#06,#41,#03,#44,#03
	db #46,#10,#60,#02,#46,#06,#46,#06
	db #4b,#06,#49,#06,#41,#06,#44,#0c
	db #46,#06,#61,#00,#19,#06,#61,#12
	db #44,#06,#61,#00,#19,#06,#61,#12
	db #3f,#10,#60,#02,#61,#07,#48,#02
	db #41,#02,#3c,#02,#48,#02,#41,#02
	db #3c,#02,#48,#02,#41,#02,#3c,#02
	db #48,#02,#41,#02,#3c,#02,#4b,#02
	db #46,#02,#3f,#02,#4b,#02,#46,#02
	db #3f,#02,#4b,#02,#46,#02,#3f,#02
.l50d3 equ $ + 7
	db #61,#06,#19,#03,#19,#03,#fe,#61
	db #00,#19,#0c,#61,#12,#46,#0c,#fa
	db #00,#fe,#44,#06,#fa,#00,#00,#44
	db #06,#41,#03,#44,#03,#46,#10,#60
	db #02,#46,#06,#46,#06,#4b,#06,#49
	db #06,#41,#06,#44,#0c,#46,#06,#61
	db #00,#19,#06,#61,#12,#44,#06,#61
	db #00,#19,#06,#61,#12,#3d,#06,#3f
	db #06,#fa,#00,#ff,#3f,#0c,#fa,#00
	db #00,#41,#06,#3f,#06,#41,#06,#61
	db #13,#25,#03,#25,#03,#25,#03,#25
	db #03,#20,#03,#20,#03,#1d,#03,#19
.l512e equ $ + 2
	db #03,#fe,#61,#08,#25,#06,#31,#03
	db #25,#09,#61,#05,#31,#06,#61,#14
	db #61,#08,#20,#03,#23,#03,#20,#03
	db #23,#03,#25,#06,#31,#03,#25,#06
	db #31,#03,#61,#05,#31,#06,#61,#14
	db #61,#08,#28,#06,#25,#03,#23,#03
	db #25,#06,#31,#03,#25,#09,#61,#05
	db #31,#06,#61,#14,#61,#08,#20,#03
	db #23,#03,#20,#03,#23,#03,#25,#06
	db #25,#03,#61,#05,#31,#03,#61,#14
	db #61,#08,#24,#06,#23,#06,#23,#03
	db #61,#05,#31,#03,#61,#14,#61,#08
.l518f equ $ + 3
	db #24,#06,#fe,#61,#05,#31,#03,#61
	db #07,#49,#03,#49,#03,#55,#03,#49
	db #03,#55,#03,#61,#06,#31,#03,#61
	db #07,#49,#03,#49,#03,#55,#03,#49
	db #03,#49,#03,#61,#05,#31,#03,#61
	db #07,#49,#03,#49,#03,#55,#03,#49
	db #03,#55,#03,#61,#03,#fa,#00,#d3
	db #25,#09,#fa,#00,#2d,#31,#09,#61
	db #05,#31,#03,#61,#07,#49,#03,#49
	db #03,#55,#03,#49,#03,#55,#03,#61
	db #06,#31,#03,#61,#07,#49,#03,#49
	db #03,#55,#03,#55,#03,#49,#03,#61
	db #05,#31,#03,#61,#07,#49,#03,#49
	db #03,#55,#03,#49,#03,#55,#03,#61
	db #12,#2e,#03,#2c,#03,#2a,#03,#29
.l520a equ $ + 6
	db #03,#27,#03,#25,#03,#fe,#61,#09
	db #44,#09,#44,#09,#61,#00,#19,#06
	db #61,#09,#44,#06,#44,#03,#44,#03
	db #61,#0a,#42,#09,#42,#09,#42,#09
	db #61,#0b,#42,#09,#61,#09,#44,#09
	db #44,#09,#61,#00,#19,#06,#61,#09
	db #44,#06,#44,#03,#44,#03,#49,#06
	db #49,#06,#49,#06,#49,#06,#49,#06
.l5249 equ $ + 5
	db #61,#0c,#49,#06,#fe,#61,#00,#44
	db #09,#44,#09,#19,#06,#44,#06,#44
	db #03,#44,#03,#42,#09,#42,#09,#42
	db #09,#42,#09,#44,#09,#44,#09,#19
	db #06,#44,#06,#44,#03,#44,#03,#49
	db #06,#49,#06,#49,#06,#49,#06,#49
.l5278 equ $ + 4
	db #06,#49,#06,#fe,#61,#14,#61,#12
	db #3a,#02,#3a,#02,#3a,#02,#3a,#03
	db #3a,#03,#46,#03,#3a,#06,#3a,#06
	db #46,#03,#3a,#03,#3a,#03,#50,#03
	db #44,#03,#44,#03,#52,#03,#3a,#02
	db #3a,#02,#3a,#02,#3a,#03,#3a,#03
	db #46,#03,#3a,#06,#3a,#06,#46,#03
	db #44,#03,#41,#03,#3f,#03,#3d,#03
	db #3a,#03,#38,#03,#3a,#02,#3a,#02
	db #3a,#02,#46,#03,#3a,#03,#3a,#03
	db #46,#03,#46,#03,#46,#03,#61,#05
	db #31,#06,#31,#03,#31,#03,#31,#06
	db #61,#15,#19,#06,#61,#14,#61,#08
	db #fa,#00,#fb,#25,#10,#60,#10,#60
	db #10,#fa,#00,#00
.l52e9 equ $ + 1
	db #fe,#61,#00,#19,#0c,#61,#12,#46
	db #0c,#fa,#00,#fe,#44,#06,#fa,#00
	db #00,#44,#06,#41,#03,#44,#03,#46
	db #10,#60,#02,#46,#06,#46,#06,#4b
	db #06,#49,#06,#41,#06,#44,#0c,#46
	db #06,#61,#00,#19,#06,#61,#12,#44
	db #06,#61,#00,#19,#06,#61,#12,#3d
	db #06,#3f,#06,#fa,#00,#ff,#3f,#0c
	db #fa,#00,#00,#41,#06,#3f,#06,#41
	db #06,#61,#00,#25,#03,#25,#03,#25
	db #03,#25,#03,#20,#03,#20,#03,#1d
.l5344 equ $ + 4
	db #03,#19,#03,#fe,#61,#08,#31,#06
	db #31,#06,#61,#00,#19,#06,#61,#08
	db #31,#06,#2f,#02,#31,#02,#2f,#02
	db #2c,#03,#29,#03,#2c,#03,#29,#03
	db #28,#06,#25,#06,#61,#00,#19,#0a
.l536d equ $ + 5
	db #60,#10,#60,#10,#fe,#61,#0f,#2c
	db #03,#2c,#06,#2c,#06,#2a,#06,#2a
	db #06,#27,#03,#27,#03,#27,#03,#25
	db #03,#25,#03,#22,#03,#22,#03,#20
	db #03,#61,#00,#19,#0a,#60,#10,#60
.l5394 equ $ + 4
	db #10,#60,#03,#fe,#61,#07,#49,#02
	db #55,#02,#49,#02,#55,#02,#49,#02
	db #55,#02,#49,#02,#55,#02,#49,#02
	db #55,#02,#49,#02,#55,#02,#61,#09
	db #fa,#00,#fd,#55,#10,#64,#05,#60
	db #10,#64,#0a,#60,#10,#64,#14,#60
	db #10,#64,#1f,#60,#08,#64,#0f,#fa
	db #00,#00,#fe,#00

.game_name
	db "Race",0
.game_year
	db "1990",0
.game_publisher
	db "Players",0
.music_author
	db "Andy Serven",0
.music_comment
	db "",0

	read "music_end_v1_0.asm"

